/* 按钮容器样式 */
.buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 列 */
    grid-template-rows: repeat(4, 1fr); /* 4 行 */
    gap: 2px; /* 减少间隙 */
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 1200px;
    padding: 0px;
    box-sizing: border-box;
}

/* 按钮样式 */
.buttons button {
    padding: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* 确保按钮长宽相等 */
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 防止贴图溢出 */
}


.buttons button:active {
    transform: scale(1);
}

.buttons button {
    user-select: none; /* 禁用文本选中 */
    -webkit-tap-highlight-color: transparent; /* 移除点击高亮颜色 */
}


.buttons button {
    padding: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.buttons button.clicked {
    transform: scale(0); /* 点击时缩小按钮 */
    background: rgba(255, 255, 255, 0.2); /* 点击时改变背景色 */
    transition: transform 0.1s ease, background 0.1s ease; /* 快速过渡 */
}